var status = -1;

function action(c, b, a) {
    status++;
    if (cm.isQuestActive(32984) && !cm.isQuestFinished(32984)) {
        action1(c, b, a)
    }
}

function action1(d, c, b) {
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.sendNormalTalk_Bottom("我们必须进入影子神殿。", 57, 0, false, true)
        } else {
            if (status === a++) {
                cm.forceCompleteQuest(32984);
                cm.updateInfoQuest(32984, "exp=1");
                cm.gainExp(550003);
                cm.dispose()
            }
        }
    }
}

function action2(d, c, b) {
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.curNodeEventEnd(true);
            cm.setInGameDirectionMode(true, true);
            cm.setStandAloneMode(true);
            cm.inGameDirectionEvent_AskAnswerTime(1000)
        } else {
            if (status === a++) {
                cm.warp(992000000, 0);
                cm.curNodeEventEnd(true);
                cm.setInGameDirectionMode(false, true);
                cm.setStandAloneMode(false);
                cm.dispose();
                cm.npc_LeaveField(2540000)
            } else {
                cm.dispose()
            }
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};